internal energy heat and work